package guicommon;

public enum MessageType {
    Session(0),
    Handler(1),
    GUI(2);

    private final int index;

    MessageType(int index) {
        this.index = index;
    }

    public int GetIndex() {
        return index;
    }

    public static MessageType FromInt(int i) {
        return MessageType.values()[i];
    }
}
